home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Think Class Libraries / CAnimCursor / CQixableCursor.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-30  |  1.1 KB  |  62 lines  |  [TEXT/KAHL]

  1. /*
  2.  * CQixableCursor.h
  3.  * Version 1.0, 13 May 1992
  4.  *
  5.  */
  6.  
  7.  
  8.  
  9. /********************************/
  10.  
  11. #pragma once
  12.  
  13. /********************************/
  14.  
  15. #include "CAnimCursor.h"
  16.  
  17. /********************************/
  18.  
  19.     /* The maximum number of lines possible.  Fifteen would be quite crowded. */
  20. #define kMaxNQixLines (15)
  21.  
  22.     /* The Qix likes to go a little faster than the standard default. */
  23. #define kDefaultQixTicksBetweenCursors (4)
  24.  
  25. /********************************/
  26.  
  27.  
  28.  
  29. class CQixableCursor : public CAnimCursor {
  30.     
  31. public:
  32.     
  33.     void            IQixableCursor(short rsrcID);
  34.     
  35.     void            setNQixLines(short nLines);
  36.     short            getNQixLines(void);
  37.     
  38.     void            setQixXferMode(short newXferMode);
  39.     short            getQixXferMode(void);
  40.     
  41.     void            setQixing(Boolean newQixing);
  42.     Boolean        getQixing(void);
  43.     
  44. protected:
  45.     
  46.     Boolean        isQixing;
  47.     short            nQixLines;
  48.     short            xferMode;
  49.     short            lineLoc[kMaxNQixLines][2][2];
  50.     short            velocity[2][2];
  51.     
  52.     void            determineTryToUseColor(void); // override
  53.     
  54.     void            nextCursor(void); // override
  55.     
  56.     void            undrawLine(short wLine);
  57.     void            drawLine(short wLine);
  58.     
  59. private:
  60.     
  61. } ;
  62.